import App from './App'

// #ifndef VUE3
import Vue from 'vue'
// main.js
import uView from '@/uni_modules/uview-ui'
import { globalMixin } from '@/common/mixin.js';
import validatePlugin from './common/validate.js'; // 导入插件
import store from './store'
Vue.use(uView)
// 全局引入Mixin
Vue.mixin(globalMixin);
Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(validatePlugin);
const app = new Vue({
	store,
    ...App
})
// 引入请求封装，将app参数传递到配置中
require('@/common/http/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif